/*
 * EquipmentUserInfo.h
 *
 *  Created on: May 16, 2012
 *      Author: Lucho0
 */

#ifndef EquipmentUserInfo_H_
#define EquipmentUserInfo_H_

#include "../ProgressBar.h"
#include "Equipment.h"

class EquipmentUserInfo: public Equipment {
public:
	EquipmentUserInfo(std::string userName, int life, Widget* parent);
	EquipmentUserInfo(DTOEquipment* dtoEquipment, Widget* parent);
	virtual ~EquipmentUserInfo();

	virtual void handleEvent(Event event);
	virtual void updateStatus();
	virtual int reduceLife(int value,playElement element);
	virtual void showOn(SDL_Surface* surface,int offsetX,int offsetY);
	virtual DTOEquipment* getDTO();

	int getLifePorcent();
	void updatePosition(int offsetX,int offsetY);

private:
	ProgressBar* progressBar;
};

#endif /* EquipmentUserInfo_H_ */
